#ss = '0123456789'
#for i in range(len(ss),0,-1):
#    print ss[:i]

ss = '0123456789'
for i in [None] + range(-1,-len(ss),-1):
    print ss[:i]
